import httpSer from "../../http";

const actions = {
    getProjectList({ commit }, params) {
        return httpSer.post('/project/pageProject', params);
    },
    addProject({ commit }, params) {
        return httpSer.post('/project/addOne', params);
    },
    removeProject({ commit }, params) {
        return httpSer.post('/project/removeOne', params);
    },
    editProject({ commit }, params) {
        return httpSer.post('/project/updateOne', params);
    },
    getProjectDetail({ commit }, params) {
        return httpSer.post('/project/getOne', params);
    },
    getRoles({ commit }, params) {
        return httpSer.get('/userInfo/getByRoleId',{params});
    },
    submitApprove({ commit }, params) {
        return httpSer.post('/project/submitApprove', params);
    },
    getMilestone({ commit }, params) {
        return httpSer.post('/milestone/listMilestone', params);
    },
    publishMilestone({ commit }, params) {
        return httpSer.post('/milestone/publish', params);
    },
    updateMilestone({ commit }, params) {
        return httpSer.post('/milestone/updateOne', params);
    },
    getApproveNode({ commit }, params) {
        return httpSer.post('/approveNode/listApproveNode', params);
    },
    getPageReview({ commit }, params) {
        return httpSer.post('/review/pageReview', params);
    },
    addReview({ commit }, params) {
        return httpSer.post('/review/addOne', params);
    },
    getDocument({ commit }, params) {
        return httpSer.post('/taskInfo/selectTaskDoc', params);
    },
    modifyMilestoneApprove({ commit }, params) {
        return httpSer.post('/milestone/modifyMilestoneApprove', params);
    }
}
export default actions